package org.yzl.designPatterns.state;

public class Context {
    public State state;

    public Context(State state){
        this.state = state;
    }

    public void mothod(){
        if("1".equals(state.getValus())){
            state.mothod1();
        }else{
            state.mothod2();
        }
    }
}
